{extend name="web/official_common/pc/base" /}

{block name="content"}

<!--主体内容 开始-->
<div class="job">
    <!--右侧区域 开始-->
    <div id="right">
        <div class="right_title">
            <!--当前位置 开始-->
            <div id="location">
                <b>{:__l('index','Current position')}：</b>
                <a href="/" target="_self">{:__l('index','Website homepage')}</a> &nbsp;&gt;&gt;&nbsp;
                <a href="javascript:;">{:ze($res,'name')}</a> &nbsp;&gt;&gt;&nbsp;
                {if !empty($son_data)}
                <a href="javascript:;">{:ze($son_data,'name')}</a>
                {/if}
            </div>
            <!--当前位置 结束-->
            <h2>
                <img src="__ADDON__/images/titleleftbg.png" align="absmiddle">{:ze($res,'name')}
                <img src="__ADDON__/images/titlerightbg.png" align="absmiddle">
            </h2>
        </div>
        <div id="subchannel_main">
            <div id="subchannel">
                <ul class="subchannellist">
                    {foreach $res['son'] as $item}
                    <li class="depth1" {if $item['is_choose']} id="current" {/if}>
                    <a href="{:get_cate_url($item)}">{:ze($item,'name')}</a>
                    </li>
                    {/foreach}
                </ul>
            </div>
        </div>
        <div class="right_body">
            <ul class="joblist">

                <!--循环开始-->
                {foreach $data as $index => $item}
                    <li>
                        <table class="job_table">
                            <tbody>
                            <tr>
                                <th class="t1">{:__l('table','Official_list_table_id')}</th>
                                <td colspan="2" class="t2">{$item['job_title']}</td>
                                <td>
                                    <div class="operation">
                                        <a href="{:addon_url('official/web.official_table/resume',[':pid'=>(int)input('param.pid'),':sid'=>(int)input('param.sid'),':id'=>$item['id']])}"><span class="btn">{:__l('table','Apply for this position')}</span></a>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <th class="">{:__l('table','Hiring')}</th>
                                <td class="t2">{$item['recruiting_numbers']}</td>
                                <th class="t3">{:__l('table','Will be valid until')}</th>
                                <td class="t4">{$item['validity']}</td>
                            </tr>
                            <tr>
                                <th class="">{:__l('table','Degree required')}</th>
                                <td class="t2">{$item['educational_requirements']}</td>
                                <th class="t3">{:__l('table','Gender requirements')}</th>
                                <td class="t4">{$item['gender']}</td>
                            </tr>
                            <tr>
                                <th class="">{:__l('table','The age requirement')}</th>
                                <td class="t2">{$item['age']}</td>
                                <th class="t3">{:__l('table','Salary')}</th>
                                <td class="t4">{$item['salary']}</td>
                            </tr>
                            <tr>
                            </tr>
                            <tr>
                                <th class="">{:__l('table','Language requirements')}</th>
                                <td class="t2">{$item['language_requirement']}</td>
                                <th class="t3">{:__l('table','Working place')}</th>
                                <td class="t4">{$item['workplace']}</td>
                            </tr>
                            <tr>
                                <th>{:__l('table','Detailed requirements')}</th>
                                <td colspan="3" class="Requirement">
                                    <div class="cc_l">
                                        {$item['detail_requirement']}
                                    </div>
                                </td>
                            </tr>
                            </tbody>
                        </table>
                    </li>
                {/foreach}
                <!--循环结束-->
            </ul>
            <div class="page_custom">
                <div class="page_son">
                    {$data->render(['pid'=>(int)input('param.pid'),'sid'=>(int)input('param.sid')])}
                </div>
            </div>
        </div>
        <div class="right_bottom"></div>
    </div>
    <!--右侧区域 结束-->
    <div class="clear"></div>
</div>
<!--主体内容 结束-->




{/block}